home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
X User Tools
/
X User Tools (O'Reilly and Associates)(1994).ISO
/
sun4c
/
archive
/
tcltk.z
/
tcltk
/
man
/
cat3
/
SetCModel.3
< prev
next >
Wrap
Text File
|
1994-09-20
|
1KB
|
67 lines
Tk_SetColorModel(3) Tk Library Procedures
_________________________________________________________________
NAME
Tk_SetColorModel, Tk_GetColorModel - access color model for
screen
SYNOPSIS
#include <tk.h>
Tk_SetColorModel(_t_k_w_i_n, _m_o_d_e_l)
Tk_ColorModel
Tk_GetColorModel(_t_k_w_i_n)
ARGUMENTS
Tk_Window _t_k_w_i_n (in) Token for window.
Tk_ColorModel _m_o_d_e_l (in) New model to use for
_w_i_n_d_o_w's screen.
_________________________________________________________________
DESCRIPTION
These procedures allow the color model for a screen to be
read and written. See the documentation for the tk colormo-
del command for details on the color model and how it is
used. Tk_SetColorModel sets the color model for the screen
associated with _t_k_w_i_n to _m_o_d_e_l. _M_o_d_e_l must be either
TK_COLOR or TK_MONO. In contrast to the tk colormodel com-
mand, there are no restrictions on the value passed to
Tk_SetColorModel (you can set the model to TK_COLOR even if
the screen only has one bit plane). Tk_GetColorModel
returns the current color model for the screen associated
with _t_k_w_i_n.
KEYWORDS
color model, screen
Tk 1